package mt.dummy;

import static org.junit.Assert.*;

import mt.Order;

import org.junit.Test;

public class ClientCommDummyTest {

	ClientCommDummy client = new ClientCommDummy();

	//MUST HAVE LOCAL SERVER RUNNING
	
	@Test
	public void testConnect() {
		assertFalse(client.isConnected());
        client.connect("127.0.0.1", "UserTest");
        assertTrue(client.isConnected());
	}

	@Test
	public void testIsConnected() {
		assertFalse(client.isConnected());
        client.connect("127.0.0.1", "UserTest");
        assertTrue(client.isConnected());
	}

	@Test
	public void testDisconnect() {
		client.connect("localhost", "UserTest");
		assertTrue(client.isConnected());
		client.disconnect();
	//	assertFalse(client.isConnected());
	}

	@Test
	public void testHasNextMessage() {
		assertFalse(client.hasNextMessage());
	}

	@Test
	public void testGetNextMessage() {
		assertNull(client.getNextMessage());
	}

	@Test
	public void testSendOrder() {
	}

}
